import request from '@/utils/request'
import qs from 'qs'

export function withdrawList(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/withdrawal/index',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function balance(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/wallet/balance',
    method: 'get',
    params: data
  })
}

export function withdraw(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/withdrawal/add',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function getInfo(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/statistics/lists',
    method: 'get',
    params: data
  })
}
